import Http from '@/common/http'

export default {

  getProfile: () => Http.get('/uc/profile'),

  getAccount: () => Http.get('/uc/account'),

  getOrders: (params = {}) => Http.get('/uc/orders', params),

  getRefunds: (params = {}) => Http.get('/uc/refunds', params),

  getCourses: (params = {}) => Http.get('/uc/courses', params),

  getConsults: (params = {}) => Http.get('/uc/consults', params),

  getReviews: (params = {}) => Http.get('/uc/reviews', params),

  getFavorites: (params = {}) => Http.get('/uc/favorites', params),

  getFriends: (params = {}) => Http.get('/uc/friends', params),

  getGroups: (params = {}) => Http.get('/uc/groups', params),

  updateProfile: (params = {}) => Http.post('/uc/profile/update', params),

  uploadAvatar: filePath => Http.uploadFile('/upload/avatar/img', filePath)

}
